<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>账户列表</title>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/extremecomponents/extremetable.jspf"%>
		<%@ include file="/commons/manage/content.jspf"%>
		<script type="text/javascript" src="userList.js"></script>
	</head>
	<body>
		<form name="userList" action="userList.shtml" method="post">
			<input type="hidden" id="event" name="event" />
			<input type="hidden" name="ec_f_type" value="${param.ec_f_type}" />
			<input type="hidden"  name="state"  value="0"/>
			<c:if test="${param.ec_f_type eq 'company'}">
				<input type="hidden"  name="ec_f_state" value="${param.ec_f_state}" />
			</c:if>
			<div class="contBtnDiv">
				<span class="contBtn contBtnNew" id="btnNew">新 增</span>
				<span class="contBtn contBtnDel" id="btnDel">删 除</span>
				<c:if test="${(param.ec_f_type eq 'company') and ((param.ec_f_state==0) or (param.ec_f_state==-1))}">
				<span class="contBtn contBtnPass" id="btnPass">审核通过</span>
				</c:if>
				<c:if test="${(param.ec_f_type eq 'company') and (param.ec_f_state==0)}">
				<span class="contBtn contBtnReject" id="btnReject">审核退回</span>
				</c:if>
			</div>
			<ec:table items="userList" var="user" form="userList"
				theme="eXtManage" view="manage" action="userList.shtml">
				<ec:row>
					<c:url var="editUrl"
						value="userEdit.shtml?user.username=${user.username}" />
					<ec:column property="id" sortable="false"
						headerStyle="text-align: center;"
						style="text-align: center; width: 50px;"
						title="<input type='checkbox' title='全选' onclick='javascript: selectAll(\"selectedIds\");' />">
						<input type="checkbox" name="selectedIds" value="${user.username}" />
					</ec:column>
					<ec:column property="title" title="用户名" alias="USERNAME_"
						style="width: 100px;">
						<a href="${editUrl}"><c:out value="${user.username}" /> </a>
					</ec:column>
					<ec:column property="name"
						title="${param.ec_f_type eq 'company'?'企业全称':'姓名'}" alias="NAME_">
						<a href="${editUrl}"><c:out value="${user.name}" /> </a>
					</ec:column>
					<ec:column property="create" title="创建时间" alias="CREATE_"
						style="width: 180px;">
						<a href="${editUrl}"><fmt:formatDate value="${user.create}"
								pattern="yyyy-MM-dd HH:mm" /> </a>
					</ec:column>
					<c:if test="${param.ec_f_type eq 'company'}">
						<ec:column property="state" title="审核状态" alias="STATE_"
							style="width: 140px;">
							<a href="${editUrl}"><c:out
									value="${userStateRefer[user.stateStr]}" /> </a>
						</ec:column>
					</c:if>
					<ec:column property="modify" title="最后修改时间" alias="MODIFY_"
						style="width: 180px;">
						<a href="${editUrl}"><fmt:formatDate value="${user.modify}"
								pattern="yyyy-MM-dd HH:mm" /> </a>
					</ec:column>
				</ec:row>
			</ec:table>
		</form>
	</body>
</html>